﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace AdoNet
{
  class CommandInfo
  {
    public string commandText; //sql或存储过程
    public SqlParameter[] parameters; //参数列表
    public int commandType; //是存储过程还是T-SQL语句
    public CommandInfo()
    {

    }
    public CommandInfo(string commandText,int commandType)
    {
      this.commandText = commandText;
      this.commandType = commandType;
    }
    public CommandInfo(string commandText, int commandType, SqlParameter[] parameters)
    {
      this.commandText = commandText;
      this.commandType = commandType;
      this.parameters = parameters;
    }
  }
}
